﻿<%@ Page Language="C#" MasterPageFile="~/aspnet/admin/ForValidation.master" AutoEventWireup="true" CodeFile="CX_News_ProbjectAddNew.aspx.cs" Inherits="MYCX_news" Title="添加新闻栏目" %>
<%@ Register Assembly="web表单验证控件" Namespace="CheckForm" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<script language="javascript" type="text/javascript" src="../../inc/js/ajaxrequest.js"></script>
    <table align="center" border="0" cellpadding="2" cellspacing="1" class="border" height="116"
        width="100%">
        <tr>
            <td class="topbg" colspan="2" height="30" align="center">
                <strong>新闻管理</strong></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px; width: 223px;">
                提示信息:</td>
            <td class="tdbg" style="height: 27px; width: 787px;">
                <asp:Label ID="tt" runat="server" CssClass="font-4"></asp:Label></td>
        </tr>
    </table>
    <br />
    <table align="center" border="0" cellpadding="2" cellspacing="1" class="border" height="116"
        width="100%">
        <tr align="center">
            <td class="topbg" colspan="2" height="30">
                <strong>添加新闻</strong><strong>分类</strong></td>
        </tr>
        <tr >
            <td class="tdbg" width="223">
                设定新闻所属性栏目:</td>
            <td class="tdbg" width="787">
                <asp:DropDownList ID="CX_Column_id" runat="server" >
                </asp:DropDownList>&nbsp;
                </td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                添加新闻设定名称:</td>
            <td class="tdbg" style="height: 27px" width="787">
                <cc1:FormValidation ID="CX_NEWS_Class_Name" runat="server" CssClass="alpha" datatype="Require"
                    MsgX="请填写栏目名" Width="166px" 是否验试="验试" MaxLength="50"></cc1:FormValidation></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">
                新闻设定说明:</td>
            <td class="tdbg" style="height: 27px">
                <label>
                    <cc1:FormValidation ID="CX_NEWS_Class_Explier" runat="server" CssClass="alpha" datatype="Require"
                        MaxLength="100" MsgX="栏目说明" Width="166px" 是否验试="不验试"></cc1:FormValidation></label></td>
        </tr>
        <tr id="Newsdir">
            <td class="tdbg" style="height: 27px">
                新闻文件生成目录:</td>
            <td class="tdbg" style="height: 27px">
                <cc1:FormValidation ID="CX_NEWS_Class_Directory" runat="server" CssClass="font-2"
                    datatype="Require" Height="20px" MaxLength="200" Width="281px" 是否验试="验试"></cc1:FormValidation>(*)默认与栏目相同
                指定后按此目录执行</td>
        </tr>
        <tr id="Newsitemp">
            <td class="tdbg" style="height: 27px">
                模板地址(*)默认与栏目模板一致:</td>
            <td class="tdbg" style="height: 27px">
                <cc1:formvalidation id="CX_NEWS_Class_Itemplitate_Address" runat="server" cssclass="alpha" datatype="Require"
                    width="474px" 是否验试="验试" MaxLength="300" MsgX="请输入栏目模板地址"></cc1:formvalidation>
                (*)使用相对于根目录的路径</td>
        </tr>
        <tr id="Newsparame">
            <td class="tdbg" style="height: 27px">
                新闻模板参数(*)默认与栏目模板一致:</td>
            <td class="tdbg" style="height: 27px">
                <cc1:FormValidation ID="CX_NEWS_Class_Itemplitate_Parame" runat="server" CssClass="alpha" datatype="Require"
                    MaxLength="100" Width="474px" 是否验试="不验试"></cc1:FormValidation></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">
                设定新闻图片:</td>
            <td class="tdbg" style="height: 27px">
                <cc1:FormValidation ID="CX_NEWS_Class_Pic" runat="server" MaxLength="250"></cc1:FormValidation>

                <input id="Button2" type="button" value="上传图片"  Class="Text_box"  runat="server"/>
                
                </td>
        </tr>
        <tr id="Newscrtfilename">
            <td class="tdbg" height="27">
                生成文件名前缀(*):</td>
            <td class="tdbg" height="27">
                <cc1:FormValidation ID="CX_NEWS_Class_CreateFielfront" runat="server" CssClass="alpha"
                    datatype="English" MaxLength="150" MsgX="不能有_ @ 汉字等  一定要为汉语拼音 " Width="257px"
                    是否验试="验试"></cc1:FormValidation></td>
        </tr>
        <tr>
            <td class="tdbg" colspan="2" height="27">
            <center>
                <asp:Button ID="Button1" runat="server" Text="确定" OnClick="Button1_Click" /></center>
            </td>
        </tr>
    </table>
    <script language="javascript" type="text/javascript">
    function CXgetVlaues(Id)
    {
        <%=str %>
    }
    
    <%=TextThisSite.IsShowElement("Newsdir,Newsitemp,Newsparame,Newscrtfilename") %>

    </script>
</asp:Content>
